
_\|/_
 /|\
 OBlzss
 
Find the compressed data with the 4 byte header included and save it to a file. The first 2 bytes will be used to determine the uncompressed size.

to decompress:
OBlzs d CompressedData.lz UncompressedData.bin

to compress:
OBlzs e UncompressedData.bin CompressedData.lz

Alternatively I have updated this utility for drag and drop awareness. If you are lucky you can process a mixed batch of files with .lz (compressed) and .bin (uncompressed) extensions without it crashing. If you pass it a file without those extensions it will stop.

Files up to 2 GB uncompressed. Takes 20 min to compress a full 2 GB file. Decompression is faster. This way you can test the compression of a file for the Ogre Battle routine with no worry that it is too big.

Most significant bit of header is set to flag OBlzss compression and will give a warning message if the lz file does not have the flag set. Since it is only a single bit there is a 50% chance it will be set on other files too.


_\|/_
 /|\
 AltDecomp	
 
First apply the patch, AltDecomp.ips, to the non-headered rom. Then extract the compressed package from the game you want to change and decompress it with the original codec, OBlzss.exe. Then recompress it with this new codec, AltOBCodecLZSS.exe. Reinsert the new compressed package back in place.
		 
*Also included are the assembly source code for AltDecomp.asm which can be assembled with XA65 and the C source code for AltOBCodecLZSS.


_\|/_
 /|\
 OBdecomp.asm
 
This is the assembly code for the original decompression routine. It can be assembled with XA65.


_\|/_
 /|\
 CompressedData

Listing of all the compressed data and text in game.